import request from '@/utils/request'
const module = '/admin/product/spec'

export const GetSpecList = (pageNum, pageSize) => {
  return request.get(`${module}/list/${pageNum}/${pageSize}`)
}

export const DeleteSpec = id => {
  return request.delete(`${module}/deleteSpec/${id}`)
}
export const UpdateSpec = data => {
  return request.put(`${module}/updateSpec`, data)
}

export const SaveSpec = data => {
  return request.post(`${module}/saveSpec`, data)
}

export const FindAllProductSpec = () => {
  return request.get(`${module}/allProductSpec`)
}
